package oop.newoop;

/**
 * Created with IntelliJ IDEA.
 * ClassName: Phone
 * Package: oop
 * Description:
 * User: fzykd
 *
 * @Author: LQH
 * Date: 2023-11-10
 * Time: 14:35
 */

public class Phone {

    //属性
    String name; //品牌
    double price; //价格

    //方法
    public void call(){
        System.out.println("手机能够拨打电话");
    }

    public void sendMessage(String message){
        System.out.println("发送信息: " + message);
    }

    public void playGame(){
        System.out.println("手机可以玩游戏");
    }


}
